package com.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.project.entity.SupplierEntity;
import com.project.entity.SupplierRecordEntity;

import java.util.List;

public interface ISupplierService {

    IPage<SupplierEntity> findByItem(int pageNO,
                                     int status,int pageSize);

    SupplierRecordEntity findByRef(Integer id);

     List<SupplierRecordEntity> findByHistory(long supplierRef);
    void   updateStatus(Integer supplierRef,int status,String cause);

    List<SupplierEntity> findAllSupplier();
}
